package com.lz.football.module.activity.topupRebate
{
	import com.common.utils.Reflection;
	import com.liangzhong.constants.ResourceConst;
	import com.liangzhong.events.ActivityEvent;
	import com.liangzhong.events.ModuleEvent;
	import com.liangzhong.manager.ResourceManager;
	import com.lz.football.module.activity.IActivity;
	
	import common.BaseView.BaseView;
	
	import flash.events.MouseEvent;
	import flash.text.TextField;

	/**
	 *充值返利 
	 * @author Administrator
	 * 
	 */	
	public class TopupRebateView extends BaseView implements IActivity
	{
		public function TopupRebateView()
		{
			super();
		}
		override public function initUI(view:Object=null):void
		{
			symbolSkin = Reflection.createInstance("com.lz.res.activity.topuprebateView");
			this.addChild(symbolSkin);
			_windowBg = symbolSkin.topupBg;
			_viewHeight = _windowBg.height;
			_viewWidth = _windowBg.width;
			isCloseBtn = true;
			isDrag = true;
			moveClose(_viewWidth - 30,38);
			onResizeHandler();
			addEvtListener();
			var time:TextField = symbolSkin.time;
			var xml:XML = ResourceManager.instance.getResource(ResourceConst.ACTIVITYTIME_XML);
			time.text = "活动时间：" +xml.active10 + "截止";;
			
		}
		override public function addEvtListener():void
		{
			
		}
		
		override public function removeEvtListener():void
		{
			super.removeEvtListener();
		}
		
		override public function destroyView():void
		{
			removeEvtListener();
			super.destroyView();
			
		}
		override public function onCloseHandler(event:MouseEvent):void
		{
			this.dispatchEvent(new ActivityEvent(ModuleEvent.REMOVE_MODULE));
		}
		
		
		/**
		 *信息 
		 * @param $obj
		 * 
		 */
		public function baseinformation($obj:Object):void
		{
		}
		/**
		 *领取奖励返回  
		 * @param $obj
		 * 
		 */		
		public function award($obj:Object):void
		{
		}
	}
}